//
//  Connection.h
//  tucici
//
//  Created by SKL on 2017/11/6.
//  Copyright © 2017年 SKL. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSUInteger, HttpsType)
{
    DefaultType = 1,
    JsonType
};
typedef void(^complete) (id data);
typedef void(^error)(NSError * error);
@interface YJDHttps : NSURLSession
@property (nonatomic, assign) HttpsType type;

+ (NSURLSessionTask *)post:(NSString *)api parameters:(id)para delegate:(id)delegateObject;

+ (NSURLSessionTask *)get:(NSString *)api;

+ (NSURLSessionTask *)post:(NSString *)api parameters:(id)para complete:(complete)complete error:(error)errors;

@end
